Output
Output is crucial to any programming language. They define how a user can access information.
There's two key ways to do so that we'll briefly go over:
console.log()
: logs to the web browser consoleprint()
: prints directly in the Hedgehog Lab environmenttip
In Chrome use 'F12' to open the console. Other browsers may vary slightly.
Let's go over an example using both:
tip
Use print()
for users and console.log()
for yourself